package nl.ejvos.bgpgames.tictactoe.shared;

/**
 * Constanten die zowel in de TicTacToe client als op de server gebruikt worden.
 * 
 * @author ejvos
 */
public class Constants
{
	/*
	 * Game status
	 */
	public static final int gsCrossPlaying = 1;
	public static final int gsNoughtPlaying = 2;
	public static final int gsCrossWon = 3;
	public static final int gsNoughtWon = 4;
	public static final int gsNobodyWon = 5;

	/*
	 * Tile status
	 */
	public static final int tsAny = 0;
	public static final int tsCross = 1;
	public static final int tsNought = 2;

	/*
	 * Win configurations
	 */
	public static final int[][] rowWins =
	{
		{
			0, 0, 0
		},
		{
			1, 1, 1
		},
		{
			2, 2, 2
		},
		{
			0, 1, 2
		},
		{
			0, 1, 2
		},
		{
			0, 1, 2
		},
		{
			0, 1, 2
		},
		{
			0, 1, 2
		}
	};
	public static final int[][] colWins =
	{
		{
			0, 1, 2
		},
		{
			0, 1, 2
		},
		{
			0, 1, 2
		},
		{
			0, 0, 0
		},
		{
			1, 1, 1
		},
		{
			2, 2, 2
		},
		{
			0, 1, 2
		},
		{
			2, 1, 0
		}
	};
}
